<?php
	class IndexAction extends BaseAction {
		
		public function index(){
			$ntime=date("G"); //取得现在的时间
			if($ntime>=0 and $ntime<11){$con =  "早上好！祝您今天有个好心情";}
			if($ntime>=11 and $ntime<14){$con = "中午好！记得小小休息一下~";}
			if($ntime>=14 and $ntime<18){$con = "下午好！工作辛苦了！";}
			if($ntime>=18 and $ntime<20){$con = "晚上好！祝您有个好梦！";}
			if($ntime>=20 and $ntime<24){$con = "您好，夜已深，请早点休息！";}
			$this->assign('con',$con);
			$data['uid'] = $_SESSION['member']['uid'];
			$user_info = D('member_info')->where($data)->find();
			if($user_info['face'] == NULL or $user_info['face'] == 0){
				$this->assign('face',1);
			}
			
			$this->display();
		}
		
		
				
	}
?>